package com.payfen.dao.impl;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.payfen.dao.inf.CooperateEnterpriseDao;
import com.payfen.ibatis.domain.CooperateEnterprise;

/**
 * 合作企业Dao的实现类
 * 
 * @author Rex_xu
 * 
 */
public class CooperateEnterpriseDaoImpl extends SqlMapClientDaoSupport
		implements CooperateEnterpriseDao {

	public void deleteCooperateEnterprise(int id) throws Exception {
		this.getSqlMapClientTemplate()
				.delete("cooperate_enterprise.delete", id);
	}

	public void insertCooperateEnterprise(CooperateEnterprise er)
			throws Exception {
		this.getSqlMapClientTemplate()
				.insert("cooperate_enterprise.insert", er);
	}

	public void updateCooperateEnterprise(CooperateEnterprise er)
			throws Exception {
		this.getSqlMapClientTemplate()
				.update("cooperate_enterprise.update", er);
	}

}
